// import { Behaviour, HitTestScript, getGameObjectById, propertyEditor_Number, SerilizeField, SpriteRenderer } from "../gameengine";


// export class MusicBehaviour extends Behaviour {
//     protected onUpdate(advancedTime: number) {
//         throw new Error("Method not implemented.");
//     }
//     private bgmAudio:HTMLAudioElement;
//     @SerilizeField(propertyEditor_Number)
//     private level: number=0;
//     public music:boolean;

//     protected onStart() {
//             this.bgmAudio = new Audio();
//             this.bgmAudio.loop=true;
//             this.bgmAudio.src = 'assets/bgm.mp3'
//             this.bgmAudio.play();
//             this.displayObject.getScript(HitTestScript).onClick = ()=>{
//                 this.music=!this.music;
//         }
       
//     }
// }

